package com.alibaba.citrus.ots.platform.enhance.functions.diff.sap.template;

import com.alibaba.citrus.ots.platform.enhance.functions.diff.common.constant.SalesOrderDiffStandardFieldDict;

import java.util.HashSet;
import java.util.Set;

/**
 * @author: qiaojiange
 * @create: 2022/01/23
 * @Description 请描述类的业务用途
 */
public class Sap015SDOStandardTemplate {

    /**
     * set
     */
    private static Set<String> set = new HashSet<>();

    /**
     * 忽略字段集合
     */
    private static Set<String> ignoreSet = new HashSet<>();


    static {

        set.add(SalesOrderDiffStandardFieldDict.OTS_SALES_ORDER_ID.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.SAP_SALES_ORDER_ID.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.ORDER_TYPE.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.SALE_ORGANIZATION_CODE.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.CHANNEL_CODE.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.PRODUCT_GROUP_CODE.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.SALE_CHANNEL_CODE.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.SALE_DEPARTMENT_CODE.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.CUSTOMER_CODE.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.RECEIVE_ADDRESS_CODE.getFieldCode());
        //set.add(SalesOrderDiffStandardFieldDict.CASH_CUSTOMER_NAME.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.CREATE_REASON.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.TRANSPORT_MODE_CODE.getFieldCode());
        //todo... hanguo 发货仓库的转换
        //set.add(SalesOrderDiffStandardFieldDict.WARE_HOUSE_CODE.getFieldCode());
        //set.add(SalesOrderDiffStandardFieldDict.WARE_HOUSE_NAME.getFieldCode());
        set.add(SalesOrderDiffStandardFieldDict.COST_CENTER.getFieldCode());



        //忽略列表
        //###############################################################//
        ignoreSet.add(SalesOrderDiffStandardFieldDict.CREATE_REASON.getFieldCode());
        ignoreSet.add(SalesOrderDiffStandardFieldDict.COST_CENTER.getFieldCode());
    }


    public static Set<String> obtainTemplateFieldSet() {
        return set;
    }

    public static Set<String> obtainIgnoreFieldSet() {
        return ignoreSet;
    }


}
